<?php $this->document->addScript('static/javascript/swipe/swipe.min.js');?>
<?php $this->document->addStyle('static/javascript/swipe/swipe.css');?>
<div id='slider<?php echo $module;?>' class='swipe'>
    <div class='swipe-wrap'>
      <?php foreach ($banners as $i => $banner) {  ?>
      <div><?php if ($banner['link']) { ?>
        <a href="<?php echo $banner['link']; ?>"><img src="<?php echo $banner['image']; ?>" alt="<?php echo $banner['title']; ?>" /></a>
        <?php } else { ?>
        <img src="<?php echo $banner['image']; ?>" alt="<?php echo $banner['title']; ?>" />
        <?php } ?></div>
      <?php } ?>
  </div>
</div>
<script type="text/javascript">
<!--
  $('#slider<?php echo $module;?>').Swipe({auto: 3000});
-->
</script>